<?php
    include_once(DAO_PATH . "/ProductDAO.php");
    include_once(OBJECT_PATH . "/Product.php");
?>

<form id="addProductForm" action="products.php?action=add" method="POST">

    <div class="form-title">Add New Product</div>

    <div class="form-label">Name:</div>
    <div class="form-component"><input type="text" name="name" /></div>

    <div class="form-label">Description:</div>
    <div class="form-component"><input type="text" name="description" /></div>

    <div style="margin-top: 30px; clear: both;"></div>

    <div class="form-subtitle">Select the components of the product:</div>

    <?php include_once(VIEW_PATH . "/ProductCatList.php"); ?>

    <div style="margin-top: 30px; clear: both;"></div>

    <div class="form-subtitle">Enter the price of the product:</div>

    <div class="form-label">Retail Price ($):</div>
    <div class="form-component"><input type="text" name="retailprice" /></div>
    
    <div style="text-align: center;"><input type="submit" value="Submit" name="Submit" /></div>

</form>

